package cn.sharp.bbs.entity.BO;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @className: ScoreEntity
 * @description: 打赏，积分解锁，悬赏完成前后端交互类
 * @author: 王晓崧
 * @date: 2022/7/10
 **/
public class ScoreEntity implements Serializable {
    private Long postID;//帖子id
    private Long userID;//用户id，记录悬赏完成者的id
    private String userName;//用户名称
    private Integer num;//打赏数额,需要的积分数额
    private String mark;//打赏备注，积分内容
    private Boolean isCheck;//检查是否已经解锁

    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date time;//时间

    public Long getPostID() {
        return postID;
    }

    public void setPostID(Long postID) {
        this.postID = postID;
    }

    public Long getUserID() {
        return userID;
    }

    public void setUserID(Long userID) {
        this.userID = userID;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getMark() {
        return mark;
    }

    public void setMark(String mark) {
        this.mark = mark;
    }

    public Boolean getCheck() {
        return isCheck;
    }

    public void setCheck(Boolean check) {
        isCheck = check;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "ScoreEntity{" +
                "postID=" + postID +
                ", userID=" + userID +
                ", num=" + num +
                ", mark='" + mark + '\'' +
                ", isCheck=" + isCheck +
                '}';
    }
}
